﻿<%@ Page Language="vb" AutoEventWireup="false" 
MasterPageFile="~/Admin/Masters/Admin.master" CodeBehind="WebsiteInformation.aspx.vb" Inherits="Boogaloo.Admin.UI.Webpages.WebsiteInformation" 
title="Mindfly Web Studio's Boogaloo - Host - General Settings" maintainscrollpositiononpostback="true" %>
<%@ register tagprefix="boogaloo" assembly="Boogaloo.Admin" namespace="Boogaloo.Admin.UI.Controls" %>
<script runat="server">
    '
    ' Boogaloo® - http://www.mindfly.com
    ' Copyright (c) 2008-2009
    ' by Mindfly, Inc.
    '
    ' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 
    ' documentation files (the "Software"), to deal in the Software without restriction, including without limitation 
    ' the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and 
    ' to permit persons to whom the Software is furnished to do so, subject to the following conditions:
    '
    ' The above copyright notice and this permission notice shall be included in all copies or substantial portions 
    ' of the Software.
    '
    ' THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
    ' INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    ' DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    ' SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    ' SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    ' WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    ' THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    
</script>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">

<h3>Website Information</h3>

    <asp:updatepanel id="up_generalinfo" runat="server">
    <contenttemplate>

    <fieldset>
        
        
        
        <h4><boogaloo:labelhiddentextbox id="lht_name" tooltip="Click to change the name of this website" runat="server" label="(Click to name this website)" CssClass="inlineEdit" validate="true" errormessage="Website name is required (error message needs changing)" validationgroup="host_general" /></h4>
        <boogaloo:labelhiddentextbox id="lht_description" tooltip="Click to add a description of this website" runat="server" label="(Click to add a description of this website)" CssClass="inlineEdit" textbox_cssclass="longest" textbox_rows="5"  /> 
        
                               
        <br />
        <span id="saved_message" runat="server" visible="false">Saved message that should "fade out" after a certain amount of time!</span>
    </fieldset>                  
        
    </contenttemplate>
    </asp:updatepanel>

        
    <asp:updatepanel id="up_delete" runat="server">
        <contenttemplate>
            <fieldset id="fs_delete" runat="server">
                <legend id="lgd_delete" runat="server" />
                
                    
                    
        <boogaloo:commitwizard id="dwiz" runat="server" start_text="Delete this website" commit_text="Yes, please delete it." cancel_text="Cancel"  message="<p>Are you sure you want to delete this website.</p><p>Think before you click!</p><p>This action cannot be reversed!</p>" />               
              
               
            </fieldset>
        </contenttemplate>
    </asp:updatepanel>
  
  
  
  
  
 

 <asp:updatepanel id="up_existdomains" runat="server">
        <contenttemplate>   
 
 
 
        
    <div class="box revealControl">
     
        <h4>Domain Names</h4>
        
        <span class="buttonWrap">
        
            <button type="button" class="button reveal add">+</button>
            <span>Add another domain name.</span>        
        </span>
     </div>   
        
     <div class="reveal panel">
        <asp:label id="lbl_domainname" runat="server" associatedcontrolid="txt_domainname">
            <span class="required question">New domain name (ex. www.mydomain.com)</span>
            <asp:textbox id="txt_domainname" cssclass="longest" runat="server" /> 
            <asp:linkbutton id="lb_add" cssclass="button enriched" runat="server" text="Add" validationgroup="host_domain" />
            <asp:requiredfieldvalidator id="rfv_domainname" runat="server" display="Dynamic" 
                errormessage="The domain name field <em>REALLY</em> is required..." 
                controltovalidate="txt_domainname" validationgroup="host_domain" />

        </asp:label>
        
        
    </div>
    
    
    <h4>Current Domains</h4>
    <p>These are the domain names already associated with this website.  Each site requires at least one domain name.</p>
        
        
        <asp:repeater id="rpt" runat="server">
            <headertemplate><ul class="normal list"></headertemplate>
            <itemtemplate>
            <li>
                <asp:label id="lbl_domain_name" runat="server" />
                <asp:linkbutton id="lb_primary" runat="server" text="Set a primary" onclick="lb_primary_Click" />
                <boogaloo:commitwizard cssclass="warning wizard" id="dwiz" runat="server" commit_text="Yep, do it already" cancel_text="I did not mean to hit that button" start_text="Delete" message="<p>You are about to delete a domain associated with this host.</p><p>Did you mean to do this.  This action cannot be reversed!</p>" onclick="dwiz_Domain_Click" />
            </li>
            </itemtemplate>
            <footertemplate></ul></footertemplate>
        </asp:repeater>           
                
        <asp:checkbox id="chk_enforce_primary_domain" runat="server" text="Enforce primary domain association." autopostback="true" />
        <span class="spanHelpText">This will assert all requests are redirected (http 301 redirect) to the primary domain.  This reduces duplicate content penalties in certain search engines.</span>

        
        <span runat="server" visible="false">Saved</span>
    </contenttemplate>

</asp:updatepanel>
  

</asp:Content>

<asp:Content ID="SubContent" ContentPlaceHolderID="SubContent" runat="server">
</asp:Content>

<asp:Content ID="Head" ContentPlaceHolderID="head" runat="server">
</asp:Content>
